package Game;

/**
 * 农民
 */

public class Farmer extends People implements Mine ,Treat,Attack{
    public Farmer() {
    }

    public Farmer(String name, int level) {
        super(name, level);
    }

    @Override
    public void mine() {
        System.out.println(this.getLevel()+"级的农民"+this.getName()+"可以采矿");
    }

    @Override
    public void treat() {
        System.out.println(this.getLevel()+"级的会农民"+this.getName()+"也可以治疗");
    }

    @Override
    public void attack() {
        System.out.println(this.getLevel()+"级的会农民"+this.getName()+"还可以攻击");
    }
}
